- Refunds a Single Transaction or Frequent Transaction
Each method has a specific time window during which a refund can be issued. Once this period expires, refunds can no longer be processed via the API for that payment.
| Payment Method | Maximum Refund Time |
|---|---|
| MB WAY | 15 months |
| Visa & Mastercard | 12 months |
| Apple Pay | 12 months |
| Google Pay | 12 months |
| Samsung Pay | 12 months |
| MB SPG references | 15 months |
| Other MB references | No limit |
| Direct Debit | 180 days |
Required scope: refund:create
Request body for creating a refund
IBAN of the bank account that receives the refund. Required for Virtual IBAN and Multibanco refunds, except Single payments with an SPG reference.
Name of the bank account holder. Required whenever iban is sent.
The amount to refund. When revert is present, this is the gross amount from the payer's perspective — the amount refunded to the payment method plus any redeemed reward credits being restored.
- Sandboxhttps://api.test.easypay.pt/2.0/refund/{id}
- Productionhttps://api.prod.easypay.pt/2.0/refund/{id}
curl -i -X POST \
'https://api.test.easypay.pt/2.0/refund/{id}' \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92' \
-H 'Content-Type: application/json' \
-d '{
"transaction_key": "transaction key Example",
"value": 17.5
}'Created
A unique identifier for the resource. While typically formatted as a UUID (Universally Unique Identifier), it can also be in other formats as defined by the user. This field ensures the resource can be distinctly recognized and referenced.
{ "status": "ok", "message": "Your request was successfully created", "id": "25997c28-1902-4f6d-842e-c6050e7d5421" }